package com.woniu108.product.client;

import com.woniu108.carService.commos.dto.AddressInfoDto;
import com.woniu108.carService.commos.dto.AdminInfoDto;
import com.woniu108.carService.commos.dto.UserInfoDto;
import com.woniu108.carService.commos.model.Result;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author yanxi
 */
@FeignClient(name = "extra-server",path = "/extra")
public interface ExtraClient {

    /**
     *  ID查找用户收货地址信息
     * @param addressId 地址ID
     * @return AddressInfoDto  用户地址详细信息
     */
    @GetMapping("/addressInfo/getByAddressId/{addressId}.c")
    public Result<AddressInfoDto> AddressInfoById(@PathVariable("addressId") Integer addressId);


}
